package com.qingkai.onlineshop.data.dao

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import com.qingkai.onlineshop.data.entity.CategoryEntity

@Dao
interface CategoryDao {
    @Insert
    suspend fun insertAll(categories: List<CategoryEntity>)

    @Query("SELECT * FROM category")
    suspend fun getAll(): List<CategoryEntity>
}